package com.warrior.respository;

import com.warrior.entity.IntroductionContentEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Shawn on 2017/3/20.
 */
@Repository
public interface IIntroductionContentRepository extends JpaRepository<IntroductionContentEntity,String>,PagingAndSortingRepository<IntroductionContentEntity,String> {

    List<IntroductionContentEntity> findIntroductionContentByIntroductionIdOrderByIntroductionSequenceAsc(String id);

    IntroductionContentEntity findIntroductionById(String id);

}
